package com.dhms.vostok1.data.danger_and_fault

import com.squareup.moshi.Json

data class DangerData(
    /* 唯一ID */
    @Json(name = "id")
    val id: String?,
    /* 设备ID */
    @Json(name = "device_id")
    val deviceId: Long?,
    /* 设备名称 */
    @Json(name = "device_name")
    val deviceName: String?,
    /* 隐患描述 */
    @Json(name = "peril_detail")
    val perilDetail: String?,
    /* 隐患类型 */
    @Json(name = "peril_category")
    val perilCategory: String?,
    /* 隐患部件 */
    @Json(name = "peril_component")
    val perilComponent: String?,
    /* 上报人 */
    @Json(name = "user_name")
    val userName: String?,
    /* 上报时间 */
    @Json(name = "upload_at")
    val uploadAt: String?,
    /* 处理状态，1:待处理 2:处理中 3:已处理 */
    @Json(name = "peril_status")
    val perilStatus: Int?,
    /* 处理结果，1: 直接处理2: 带病运转3: 转为故障4: 确认非隐患 */
    @Json(name = "peril_conclusion")
    val perilConclusion: Int?
)

data class DangerAndFaultCountData(
    @Json(name = "peril_total")
    val perilCount: Int?,
    @Json(name = "fault_total")
    val faultCount: Int?
)